<?php
/**
 * Anzeigen vom Template
 * 
 * $Rev: 7 $
 * $Author: thejahweh $
 * $Date: 2010-09-01 07:30:00 +0000 (Wed, 01 Sep 2010) $
 * $Id: smarty.php 7 2010-09-01 07:30:00Z thejahweh $
 * $URL: http://allone.googlecode.com/svn/trunk/plugins/smarty/smarty.php $
 * @author: Adrian Liechti <info@jahweh.ch>
 * @copyright: 2010 Adrian Liechti, GPL3 and CC3 BY-SA
 */

if (!isset($output) or !isset($output_plugin) 
	or (isset($output) and get_class($output) !== 'alloneSmarty')
	or (isset($output_plugin) and $output_plugin->id !== 'smarty'))
{
	return false;
}

//$output->force_compile = true;
$output->debugging = false;
$output->cache_lifetime = 120;

// Trace
$output->allow_php_tag = true;
$output_display = 'index.tpl';

u::o('Smarty Start', 'plugin:smarty');

u::o('template_dir: <span class="path">'.$output->template_dir.'</span>',	'plugin:smarty', 1);
u::o('compile_dir:  <span class="path">'.$output->compile_dir.'</span>',	'plugin:smarty', 1);
u::o('cache_dir:    <span class="path">'.$output->cache_dir.'</span>',		'plugin:smarty', 1);

u::o('caching:      <span class="var">'.u::xToStr($output->caching).'</span>', 'plugin:smarty', 1);
u::o('display:      <span class="path">'.$output_display.'</span>',	'plugin:smarty', 1);

$output->display($output_display);
?>
